﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Wicresoft.UnifyShow.Business;
using Microsoft.Practices.Unity;

namespace Wicresoft.UnifyShow.Portal.Controllers
{
    public class HeaderController : BaseController
    {
        //
        // GET: /Header/


        private IUser_X user;

        protected override void Dispose(bool disposing)
        {
            ((IDisposable)user).Dispose();

        }
        [InjectionConstructor]
        public HeaderController(IUser_X user)
        {
            this.user = user;
        }


        public ActionResult HeaderContent()
        {
            base.SetRoles(user);
            ViewBag.Name = UserDisplayName;
            return PartialView();
        }

    }
}
